home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / system / porttool.zip / CHMOD.MAN < prev    next >
Text File  |  1992-12-03  |  4KB  |  97 lines

  1.  
  2.    NNAAMMEE
  3.       chmod - change the permissions mode of a file
  4.  
  5.    SSYYNNOOPPSSIISS
  6.       cchhmmoodd [ --RRffhh ] _m_o_d_e _f_i_l_e_n_a_m_e ...
  7.  
  8.    DDEESSCCRRIIPPTTIIOONN
  9.       Change the attributes (mode) of a file or files.
  10.  
  11.       The mode of each named file is changed according to _m_o_d_e, which may
  12.       be absolute or symbolic, as follows.
  13.  
  14.       Absolute Modes
  15.          An absolute _m_o_d_e is an octal number constructed by ORing the
  16.          following values together:
  17.  
  18.             400   Read by owner.
  19.             200   Write by owner.
  20.             100   Execute (search in directory) by owner.
  21.             040   Read by group.
  22.             020   Write by group.
  23.             010   Execute (search) by group.
  24.             004   Read by others.
  25.             002   Write by others.
  26.             001   Execute (search) by others.
  27.             4000  Set user ID on execution.
  28.             2000  Set group ID on execution (this bit is ignored if the
  29.                   file is a directory; it may be set or cleared only
  30.                   using symbolic mode).
  31.             1000  Sticky bit, (see chmod(2) for more information).
  32.  
  33.          These values are supported only for Unix compatibility, under
  34.          MS-DOS and OS/2 only the Write attribute is examined and is used
  35.          to set the Read-Only atrribute.
  36.  
  37.          Symbolic Modes
  38.             A symbolic _m_o_d_e has the form:
  39.  
  40.             [ _w_h_o ] _o_p _p_e_r_m_i_s_s_i_o_n [ _o_p _p_e_r_m_i_s_s_i_o_n ] ...
  41.  
  42.             _w_h_o is a combination of:
  43.  
  44.                u  User's permissions.
  45.                g  Group permissions.
  46.                o  Others.
  47.                a  All, or ugo.
  48.  
  49.             If _w_h_o is omitted, the default is aa.
  50.  
  51.             _o_p is one of:
  52.  
  53.                +  To add the _p_e_r_m_i_s_s_i_o_n.
  54.                -  To remove the _p_e_r_m_i_s_s_i_o_n.
  55.                =  To assign the permission explicitly (all other bits for
  56.                   that category, owner, group, or others, will be reset).
  57.  
  58.          _p_e_r_m_i_s_s_i_o_n is any combination of:
  59.  
  60.             r  Read.
  61.             w  Write.
  62.             x  Execute.
  63.             X  Give execute permission if the file is a directory or if
  64.                there is execute permission for one of the other user
  65.                classes.
  66.             s  Set owner or group ID. This is only useful with u or g.
  67.                Also, the set group ID bit of a directory may only be
  68.                modified with '+' or '-'.
  69.             t  Set the sticky bit to save program text between processes.
  70.             A  Set the MS-DOS and OS/2 Archive attribute.
  71.             H  Set the MS-DOS and OS/2 Hidden attribute.
  72.             S  Set the MS-DOS and OS/2 System attribute.
  73.  
  74.          The letters u, g, or o indicate that _p_e_r_m_i_s_s_i_o_n is to be taken
  75.          from the current mode for the user-class.
  76.  
  77.          Omitting _p_e_r_m_i_s_s_i_o_n is only useful with '=', to take away all
  78.          permissions.
  79.  
  80.          Multiple symbolic modes, separated by commas, may be given.
  81.          Operations are performed in the order specified.
  82.  
  83.       Again, symbolic values are supported only for Unix compatibility.
  84.       For MS-DOS and OS/2 the only applicable symbolic values are w, A, H
  85.       and S.
  86.  
  87.    OOPPTTIIOONNSS
  88.       --RR Recursively descend through directory arguments, setting the
  89.          mode for each file as described above.
  90.  
  91.       --ff Force.  cchhmmoodd will not complain if it fails to change the mode
  92.          of a file.
  93.  
  94.       --hh Display a short help message.
  95.  
  96.    CCooppyyrriigghhtt  ((cc))  11999922    FFrraannkk  EE..  WWhhaalleeyy    AAllll  rriigghhttss  rreesseerrvveedd
  97.